package run.vueblog.app.util;

import org.apache.shiro.SecurityUtils;
import run.vueblog.app.shiro.AccountProfile;

/**
 * @Author: zhanghuan
 * @date: 2020/8/5 15:13
 * @description:
 */
public class ShiroUtil {

    public static AccountProfile getProfile() {
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
